<?php if (!defined('NOVA_RUN')) die('You can\'t access this file directly!'); ?><?php $this->load('header'); ?>
<?php if ($this->err): ?><span style="color:red;"><?php echo $this->err; ?></span><?php endif; ?>
<?php if ($this->success): ?><span style="color:green;"><?php echo $this->success; ?></span><?php else: ?>
<form method="post">
<?php echo $this->lang->get('register', 'login'); ?><br />
<input type="text" name="login" value="<?php echo get_request('login', 'post'); ?>" /><br />
<?php echo $this->lang->get('register', 'email'); ?><br />
<input type="text" name="email" value="<?php echo get_request('email', 'post'); ?>" /><br />
<?php echo $this->lang->get('register', 'password'); ?><br />
<input type="password" name="password" value="<?php echo get_request('password', 'post'); ?>" /><br />
<?php echo $this->lang->get('register', 'repeat_password'); ?><br />
<input type="password" name="repeat_password" value="<?php echo get_request('repeat_password', 'post'); ?>" /><br />
<input type="hidden" name="secretKey" value="<?php echo Engine::secretKey(); ?>" />
<input type="hidden" name="register" value="1" />
<input type="submit" value="<?php echo $this->lang->get('register', 'register'); ?>" />
</form>
<?php endif; ?>

<?php $this->load('footer'); ?>